*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
}
.chr-action-icon__icon {
  fill: #fff;
  height: 32px;
  width: 32px;
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}

.card {
  background-color: #fff;
  border-radius: 24px;
  max-width: 591px;
  min-height: 488px;
  overflow: hidden;
  position: relative;
  -webkit-transition: background-color 200ms ease-out;
  transition: background-color 200ms ease-out;
}

.card-cover__text-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px;
}

.chr-eyebrow {
  font-size: 0.875rem;
  line-height: 1.5rem;
  letter-spacing: 0.03125rem;
  color: #202124;
  color: #202124;
  font-family: "Google Sans", arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.card_btn_style {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}

.card {
  margin-bottom: 40px;
  background-color: #e8f0fe;
  .card-cover {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;

    .card-cover__text-wrapper {
      .chr-headline-2 {
        font-size: 28px;
        letter-spacing: -0.5px;
        line-height: 36px;

        font-family: "Google Sans", arial, sans-serif;
        font-weight: 700;
        color: #202124;
      }
    }
  }

  .card_btn.active {
    background-color: #80868b;
    fill: #fff;
    .chr-action-icon__icon {
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg);
    }
  }

  .card_btn {
    background-color: #1a73e8;

    bottom: 16px;
    height: 48px;
    position: absolute;
    right: 16px;
    width: 48px;
    z-index: 2;
  }
}

.card:hover {
  .chr-action-icon--light {
    background-color: #185abc;
    -webkit-transform: scale(1.14);
    transform: scale(1.14);
  }
}

.card-cover--interactive {
  position: relative;
  z-index: 1;
}

//切换后的内容
.card_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;

  padding: 40px;
  width: 100%;

  min-height: 344px;
}
.card_box--interactive {
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
}
//点击后
.card_box--active {
  pointer-events: all;
}

//2-图片
.card-back__image-wrapper {
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;

  display: none;
  img {
    aspect-ratio: 243/100;
    display: block;
    width: 100%;
  }
}

//内容

.card_box--inactive {
  .card-back__image-wrapper,
  .card-back__text-wrapper {
    //opacity: 0;
  }
}
.card_box--active {
  .card-back__image-wrapper,
  .card-back__text-wrapper {
    opacity: 0;
  }
}

//文本
.card-back__body {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 8px;
}
.chr-copy-xl {
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: 0rem;
  color: #5f6368;
  color: #5f6368;
  font-family: "Google Sans Text", arial, sans-serif;
}

.card--interactive {
  cursor: pointer;
}

@media only screen and (min-width: 1024px) {
  .card {
    max-width: initial;
    display: inline-block;
    //width: 100%;
    width: 614px;
    min-height: 520px;
    max-height: 40rem;
    .card-cover {
      min-height: 520px;
      .card-cover__text-wrapper {
        padding: 40px 64px;
        .chr-headline-2 {
          font-size: 48px;
          letter-spacing: -1px;
          line-height: 56px;
        }
      }
    }
    .card_btn {
      bottom: 24px;
      height: 56px;
      right: 24px;
      width: 56px;
    }
  }
  .card_box {
    min-height: 520px;
  }
  .card-back__image-wrapper {
    display: block;
  }

  .card-back__body {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

//切换动画

//顶部
.card-cover--inactive .card-cover__text-wrapper {
  -webkit-animation: cover-fade-in 0.3s ease-out 0.3s forwards;
  animation: cover-fade-in 0.3s ease-out 0.3s forwards;
  opacity: 0;
}
//开启
.card-cover--active .card-cover__text-wrapper {
  -webkit-animation: cover-fade-out 0.3s ease-in forwards;
  animation: cover-fade-out 0.3s ease-in forwards;
}

//底部
.card_box--inactive .card-back__image-wrapper {
  -webkit-animation: back-fade-out 0.3s ease-in 0.1s forwards;
  animation: back-fade-out 0.3s ease-in 0.1s forwards;
  opacity: 1;
}

.card_box--active .card-back__image-wrapper {
  -webkit-animation: back-fade-in 0.3s ease-out 0.2s forwards;
  animation: back-fade-in 0.3s ease-out 0.2s forwards;
}

.card_box--inactive .card-back__text-wrapper {
  -webkit-animation: back-fade-out 0.3s ease-in forwards;
  animation: back-fade-out 0.3s ease-in forwards;
}
//展示

.card_box--active .card-back__text-wrapper {
  -webkit-animation: back-fade-in 0.3s ease-out 0.3s forwards;
  animation: back-fade-in 0.3s ease-out 0.3s forwards;
}

//动画

@keyframes cover-fade-in {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-24px);
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes cover-fade-out {
  0% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-24px);
    transform: translateY(-24px);
  }
}
@keyframes back-fade-in {
  0% {
    opacity: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
  }
  100% {
    opacity: 100;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes back-fade-out {
  0% {
    opacity: 100;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
  }
}
